//
//  BSLatestCollectionViewCell.m
//  BaiSiBuDeJie
//
//  Created by bill on 16/8/26.
//  Copyright © 2016年 tsaievan. All rights reserved.
//

#import "BSLatestCollectionViewCell.h"
#import "BSTableViewController.h"
@interface BSLatestCollectionViewCell()
//tableViewVC
@property(nonatomic,strong)BSTableViewController *tableViewVC;
@end


@implementation BSLatestCollectionViewCell


-(void)awakeFromNib
{
    
 
    
    UIStoryboard *board = [UIStoryboard storyboardWithName:@"SBLatestTableView" bundle:nil];
    self.tableViewVC = [board instantiateInitialViewController];
    [self.contentView addSubview:self.tableViewVC.tableView];
    
    [self.tableViewVC.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.right.bottom.top.equalTo(self.contentView).offset(0);
        
    }];

}


-(void)setUrl:(NSString *)url
{
    _url = url;
    self.tableViewVC.url = url;
}

-(void)drumpToWebViewWithblock:(void(^)())block
{
    self.tableViewVC.drumpBlock = block;
}


@end
